CXX = g++
CXXFLAGS=-I/usr/local/include/boost -I../Common -c -g -fPIC
ALLOBJECTS = stdafx.o ClientCallbackData.o GameServer.o Gate.o GateManager.o Player.o PlayerManager.o ServerCallbackGame.o Battle.o\
BattleManager.o Item.o  ItemManager.o Skill.o SkillManager.o NPC.o NPCManager.o Pet.o PetManager.o Script.o ScriptManager.o\
ModuleItem.o ModuleMap.o ModulePlayer.o LuaBattle.o LuaPlayer.o Map.o MapManager.o Const.o DateManager.o\
Lover.o LoverManager.o MallManager.o PlayerTask.o TaskManager.o PlayerLover.o PlayerDate.o PlayerFriend.o PlayerTeam.o PlayerSkill.o\
PlayerBase.o PlayerPet.o PlayerItem.o ModuleBattle.o

GameServer : $(ALLOBJECTS)
	$(CXX) -L/usr/local/lib/ -L../Common -lCommon  -g -o GameServer $(ALLOBJECTS) -lboost_thread -lpthread -llua -lboost_system -lstdc++ 

stdafx.o : stdafx.cpp
	$(CXX) $(CXXFLAGS) stdafx.cpp
ClientCallbackData.o : ClientCallbackData.cpp
	$(CXX) $(CXXFLAGS) ClientCallbackData.cpp
GameServer.o : GameServer.cpp
	$(CXX) $(CXXFLAGS) GameServer.cpp
Gate.o : Gate.cpp
	$(CXX) $(CXXFLAGS) Gate.cpp
GateManager.o : GateManager.cpp
	$(CXX) $(CXXFLAGS) GateManager.cpp
PlayerBase.o : PlayerBase.cpp
	$(CXX) $(CXXFLAGS) PlayerBase.cpp
PlayerPet.o : PlayerPet.cpp
	$(CXX) $(CXXFLAGS) PlayerPet.cpp
PlayerItem.o : PlayerItem.cpp
	$(CXX) $(CXXFLAGS) PlayerItem.cpp
Player.o : Player.cpp
	$(CXX) $(CXXFLAGS) Player.cpp
PlayerManager.o : PlayerManager.cpp
	$(CXX) $(CXXFLAGS) PlayerManager.cpp
ServerCallbackGame.o : ServerCallbackGame.cpp
	$(CXX) $(CXXFLAGS) ServerCallbackGame.cpp
Battle.o : Battle.cpp
	$(CXX) $(CXXFLAGS) Battle.cpp
BattleManager.o : BattleManager.cpp
	$(CXX) $(CXXFLAGS) BattleManager.cpp
Item.o : Item.cpp
	$(CXX) $(CXXFLAGS) Item.cpp
ItemManager.o : ItemManager.cpp
	$(CXX) $(CXXFLAGS) ItemManager.cpp
Skill.o : Skill.cpp
	$(CXX) $(CXXFLAGS) Skill.cpp
SkillManager.o : SkillManager.cpp
	$(CXX) $(CXXFLAGS) SkillManager.cpp
NPC.o : NPC.cpp
	$(CXX) $(CXXFLAGS) NPC.cpp
NPCManager.o : NPCManager.cpp
	$(CXX) $(CXXFLAGS) NPCManager.cpp
Pet.o : Pet.cpp
	$(CXX) $(CXXFLAGS) Pet.cpp
PetManager.o : PetManager.cpp
	$(CXX) $(CXXFLAGS) PetManager.cpp
Script.o : Script.cpp
	$(CXX) $(CXXFLAGS) Script.cpp
ScriptManager.o : ScriptManager.cpp
	$(CXX) $(CXXFLAGS) ScriptManager.cpp
Map.o : Map.cpp
	$(CXX) $(CXXFLAGS) Map.cpp
MapManager.o : MapManager.cpp
	$(CXX) $(CXXFLAGS) MapManager.cpp
ModuleItem.o : ModuleItem.cpp
	$(CXX) $(CXXFLAGS) ModuleItem.cpp
ModuleMap.o : ModuleMap.cpp
	$(CXX) $(CXXFLAGS) ModuleMap.cpp
ModulePlayer.o : ModulePlayer.cpp
	$(CXX) $(CXXFLAGS) ModulePlayer.cpp
LuaBattle.o : LuaBattle.cpp
	$(CXX) $(CXXFLAGS) LuaBattle.cpp
LuaPlayer.o : LuaPlayer.cpp
	$(CXX) $(CXXFLAGS) LuaPlayer.cpp
Const.o : Const.cpp
	$(CXX) $(CXXFLAGS) Const.cpp
DateManager.o : DateManager.cpp
	$(CXX) $(CXXFLAGS) DateManager.cpp
Lover.o : Lover.cpp
	$(CXX) $(CXXFLAGS) Lover.cpp
LoverManager.o : LoverManager.cpp
	$(CXX) $(CXXFLAGS) LoverManager.cpp
MallManager.o : MallManager.cpp
	$(CXX) $(CXXFLAGS) MallManager.cpp
PlayerTask.o : PlayerTask.cpp
	$(CXX) $(CXXFLAGS) PlayerTask.cpp
TaskManager.o : TaskManager.cpp
	$(CXX) $(CXXFLAGS) TaskManager.cpp
PlayerLover.o : PlayerLover.cpp
	$(CXX) $(CXXFLAGS) PlayerLover.cpp
PlayerDate.o : PlayerDate.cpp
	$(CXX) $(CXXFLAGS) PlayerDate.cpp
PlayerFriend.o : PlayerFriend.cpp
	$(CXX) $(CXXFLAGS) PlayerFriend.cpp
PlayerTeam.o : PlayerTeam.cpp
	$(CXX) $(CXXFLAGS) PlayerTeam.cpp
PlayerSkill.o : PlayerSkill.cpp
	$(CXX) $(CXXFLAGS) PlayerSkill.cpp
ModuleBattle.o : ModuleBattle.cpp
	$(CXX) $(CXXFLAGS) ModuleBattle.cpp

.PHONY :  clean
clean :
	-rm *.o
	-rm GameServer
.PHONY : install
install :

